#include <signal.h>
#include "Server.h"
#include "Log.h"

using namespace std;

int main(int argc, char **argv){
	signal(SIGPIPE,SIG_IGN);
	if (!init_logger("./logs/", "TRACE")) {
		cout << "logger init failed" << endl;
		return -1;
	}
	//Server *s = new Server("test", "199.155.122.17", 3330);
	Server *s = new Server("test", "127.0.0.1", 3330);
	s->run(); 
	while(1) sleep(1);
	return 0;
}
